import request from "../../request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired, type Collections } from "../../interface";

/**
 * 保存或更新 Collections 信息
 * /collections
 */
export function postCollections(input: Collections, config?: AxiosRequestConfig) {
    return request.post<DeepRequired<boolean>>(`/collections`, input, config);
}
